<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<button id="myBtn">按钮点击</button>
<script>
  document.getElementById("myBtn").addEventListener('click',function() {
    window.opener.parentCallback()
  })
</script>
</body>
</html>